#include "FpsFramework.h"

int FpsFramework::init()
{
	m_fps = 0;
	m_fcount = 0;
	m_fstart = timeGetTime();

	return FPS_SUCCESS;
}

int FpsFramework::update()
{
	m_fcount++;

	if(timeGetTime() >= (m_fstart+1000))
	{
		m_fps = m_fcount;
		m_fcount = 0;
		m_fstart = timeGetTime();
	}

	return FPS_SUCCESS;
}